package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.changzhi.ldyl.model.ActivityDevote;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 活动贡献表 Mapper 接口
 * </p>
 *
 * @author 小落
 * @since 2021-12-02
 */
public interface ActivityDevoteMapper extends BaseMapper<ActivityDevote> {


	@Select("UPDATE yl_activity_devote SET num = num + #{value} where id = #{id}")
	void addNum(@Param("id") Integer id,@Param("value") Integer value);
}
